package com.spark.sniffer.plugin.match;

import java.lang.reflect.Type;

/**
 * Match the class with an explicit class name.
 *
 * @author wusheng
 */
public class TypeMatch implements ClassMatch {

    private Type type;

    private TypeMatch(Type type) {
        this.type = type;
    }

    public Type getType() {
        return type;
    }

    public static TypeMatch byType(Type type) {
        return new TypeMatch(type);
    }
}
